    Crypt - Inifile                    KAP Dipl.-Ing. Holger Lembke
    ===============
    ===============

Description
~~~~~~~~~~~
The CryptIniFile-class is nearly the same than the TIniFile-Class. There are the same functions with the same behavior:

 function    CryptReadString   (const Section, Ident,         Default: string): string;
 procedure   CryptWriteString  (const Section, Ident,         Value: String);
 function    CryptReadInteger  (const Section, Ident: string; Default: Longint): Longint;
 procedure   CryptWriteInteger (const Section, Ident: string; Value: Longint);
 function    CryptReadBool     (const Section, Ident: string; Default: Boolean): Boolean;
 procedure   CryptWriteBool    (const Section, Ident: string; Value: Boolean);

Everything you need to do is to change 

   inifile:=tinifile.create(filename)

by

   inifile:=tcryptinifile.create(filename)

and append "crypt" before all read and write methods.


Usage
~~~~~
Crypt-Inifile will per default create a "global" readable inifile. Everyone with 
the same codebook has access.

By changing the value of "customseed". it is possible to create a user-unique readable 
inifile. This value will not be stored anywhere. It must be set after "create".


Security
~~~~~~~~
Nothing is secure. I believe Crypt-Inifile is relative secure.

Crypt-Inifile works with two codebooks. If the attacker didn't know these codebooks, it 
is rather unbreakable. Statistical analyse or choosen-plaintext-analyse do not work.

A user-unique-inifile can be broken by a known-plaintext attack and with known codebooks 
by trying out all 2^32 values of "customseed".

It's easy to change the codebooks (if you have the sourcecode).


Limitations in this demo
~~~~~~~~~~~~~~~~~~~~~~~~
All versions use same codebook, so everyone with this version can read you secrets.


How to get the source
~~~~~~~~~~~~~~~~~~~~~
Buy it at http://www.hlembke.de/prod


KAP Dipl.-Ing. Holger Lembke
Hamburger Strasse 284
38114 Braunschweig

Telefon: 0531-334676   +49-531-334676
FAX:     0531-340215   +49-531-340215

eMail:   holger@hlembke.de








